package com.hb.impl;

import com.hb.interfaces.Dessert;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

@Component
// 消除歧义，表示这个 bean 是发生歧义时的首选
@Primary
@Qualifier("cold")
public class IceCream implements Dessert {
}
